/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

/**
 *
 * @author Zhilin
 */
public class SecurityLevel {
    final public static int ADMIN= 0;
    final public static int MANAGER = 1;
    final public static int COMMITOR = 2;
    final public static int VIEWER = 3;
    
    public static String getString(int securityCode){
        String result="";
        switch(securityCode){
            case ADMIN:
                result = "Admin"; return result;
            case MANAGER:
                result = "Manager"; return result;
            case COMMITOR:
                result = "Commitor"; return result;
            case VIEWER:
                result = "Viewer"; return result;
        }
        return "Invalid";
    }
}
